import request from '@/utils/request'

export function fetchCoupons(params={}) {
  return request('/Amaidan-Market-Web/coupon/page', {
    method: 'POST',
    data: params
  })
}

// 获取优惠券分类
export function fetchCouponClassify(params={}) {
  return request('/Amaidan-Market-Web/market/salCouponClass/getCouponClassPage', {
    method: 'POST',
    data: params
  })
}

// 查询领取/使用的优惠券
export function fetchReceive(params={}) {
  return request('/Amaidan-Market-Web/coupon/log/page', {
    method: 'POST',
    data: params
  })
}
